Optimal. Leaf size=88 \[ -\frac {\sqrt {e} \tan ^{-1}\left (\frac {\sqrt {b} \sqrt {e x}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} b^{3/2} c}+\frac {\sqrt {e} \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {e x}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} b^{3/2} c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {74, 335, 304,
211, 214} \begin {gather*} \frac {\sqrt {e} \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {e x}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} b^{3/2} c}-\frac {\sqrt {e} \text {ArcTan}\left (\frac {\sqrt {b} \sqrt {e x}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} b^{3/2} c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 74
Rule 211
Rule 214
Rule 304
Rule 335
Rubi steps
\begin {align*} \int \frac {\sqrt {e x}}{(a+b x) (a c-b c x)} \, dx &=\int \frac {\sqrt {e x}}{a^2 c-b^2 c x^2} \, dx\\ &=\frac {2 \text {Subst}\left (\int \frac {x^2}{a^2 c-\frac {b^2 c x^4}{e^2}} \, dx,x,\sqrt {e x}\right )}{e}\\ &=\frac {e \text {Subst}\left (\int \frac {1}{a e-b x^2} \, dx,x,\sqrt {e x}\right )}{b c}-\frac {e \text {Subst}\left (\int \frac {1}{a e+b x^2} \, dx,x,\sqrt {e x}\right )}{b c}\\ &=-\frac {\sqrt {e} \tan ^{-1}\left (\frac {\sqrt {b} \sqrt {e x}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} b^{3/2} c}+\frac {\sqrt {e} \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {e x}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} b^{3/2} c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 63, normalized size = 0.72 \begin {gather*} \frac {\sqrt {e x} \left (-\tan ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )+\tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )\right )}{\sqrt {a} b^{3/2} c \sqrt {x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 58, normalized size = 0.66
method | result | size |
derivativedivides | \(-\frac {2 e \left (\frac {\arctan \left (\frac {b \sqrt {e x}}{\sqrt {a e b}}\right )}{2 b \sqrt {a e b}}-\frac {\arctanh \left (\frac {b \sqrt {e x}}{\sqrt {a e b}}\right )}{2 b \sqrt {a e b}}\right )}{c}\) | \(58\) |
default | \(-\frac {2 e \left (\frac {\arctan \left (\frac {b \sqrt {e x}}{\sqrt {a e b}}\right )}{2 b \sqrt {a e b}}-\frac {\arctanh \left (\frac {b \sqrt {e x}}{\sqrt {a e b}}\right )}{2 b \sqrt {a e b}}\right )}{c}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 69, normalized size = 0.78 \begin {gather*} -\frac {1}{2} \, {\left (\frac {2 \, \arctan \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{\sqrt {a b} b c} + \frac {\log \left (\frac {b \sqrt {x} - \sqrt {a b}}{b \sqrt {x} + \sqrt {a b}}\right )}{\sqrt {a b} b c}\right )} e^{\frac {1}{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.93, size = 141, normalized size = 1.60 \begin {gather*} \left [\frac {2 \, \sqrt {a b} \arctan \left (\frac {\sqrt {a b}}{b \sqrt {x}}\right ) e^{\frac {1}{2}} + \sqrt {a b} e^{\frac {1}{2}} \log \left (\frac {b x + a + 2 \, \sqrt {a b} \sqrt {x}}{b x - a}\right )}{2 \, a b^{2} c}, -\frac {2 \, \sqrt {-a b} \arctan \left (\frac {\sqrt {-a b}}{b \sqrt {x}}\right ) e^{\frac {1}{2}} + \sqrt {-a b} e^{\frac {1}{2}} \log \left (\frac {b x - a + 2 \, \sqrt {-a b} \sqrt {x}}{b x + a}\right )}{2 \, a b^{2} c}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 170 vs.
\(2 (80) = 160\).
time = 0.91, size = 170, normalized size = 1.93 \begin {gather*} \begin {cases} - \frac {\sqrt {e} \sqrt {x}}{a b c} + \frac {\sqrt {e} \operatorname {acoth}{\left (\frac {\sqrt {a}}{\sqrt {b} \sqrt {x}} \right )}}{\sqrt {a} b^{\frac {3}{2}} c} + \frac {\sqrt {e} \operatorname {atan}{\left (\frac {\sqrt {a}}{\sqrt {b} \sqrt {x}} \right )}}{\sqrt {a} b^{\frac {3}{2}} c} & \text {for}\: \left |{\frac {a}{b x}}\right | > 1 \\- \frac {\sqrt {e} \sqrt {x}}{a b c} + \frac {\sqrt {e} \operatorname {atan}{\left (\frac {\sqrt {a}}{\sqrt {b} \sqrt {x}} \right )}}{\sqrt {a} b^{\frac {3}{2}} c} + \frac {\sqrt {e} \operatorname {atanh}{\left (\frac {\sqrt {a}}{\sqrt {b} \sqrt {x}} \right )}}{\sqrt {a} b^{\frac {3}{2}} c} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.74, size = 53, normalized size = 0.60 \begin {gather*} -{\left (\frac {\arctan \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{\sqrt {a b} b c} + \frac {\arctan \left (\frac {b \sqrt {x}}{\sqrt {-a b}}\right )}{\sqrt {-a b} b c}\right )} e^{\frac {1}{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.14, size = 53, normalized size = 0.60 \begin {gather*} -\frac {\sqrt {e}\,\mathrm {atan}\left (\frac {\sqrt {b}\,\sqrt {e\,x}}{\sqrt {a}\,\sqrt {e}}\right )-\sqrt {e}\,\mathrm {atanh}\left (\frac {\sqrt {b}\,\sqrt {e\,x}}{\sqrt {a}\,\sqrt {e}}\right )}{\sqrt {a}\,b^{3/2}\,c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________